#include "../include/workerData.h"

int workerInit(workerData_t *pworkerArr, int workerNum){
    pworkerArr->tidArr = (pthread_t *)calloc(workerNum,sizeof(pthread_t));
    pworkerArr->workerNum = workerNum;
    return 0;
}

//int main(){
//    workerData_t workerArr;
//    workerInit(&workerArr,3);
//    for(int i = 0; i < workerArr.workerNum; i++){
//        printf("%ld\n",workerArr.tidArr[i]);
//    }
//    return 0;
//}
